package com.ouc.dataMange.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ouc.dataMange.mapper.SysDataElectronicChartMapper;
import com.ouc.dataMange.domain.SysDataElectronicChart;
import com.ouc.dataMange.service.ISysDataElectronicChartService;

/**
 * electronicChartService业务层处理
 * 
 * @author ouc
 * @date 2025-07-25
 */
@Service
public class SysDataElectronicChartServiceImpl implements ISysDataElectronicChartService 
{
    @Autowired
    private SysDataElectronicChartMapper sysDataElectronicChartMapper;

    /**
     * 查询electronicChart
     * 
     * @param dataId electronicChart主键
     * @return electronicChart
     */
    @Override
    public SysDataElectronicChart selectSysDataElectronicChartByDataId(Integer dataId)
    {
        return sysDataElectronicChartMapper.selectSysDataElectronicChartByDataId(dataId);
    }

    /**
     * 查询electronicChart列表
     * 
     * @param sysDataElectronicChart electronicChart
     * @return electronicChart
     */
    @Override
    public List<SysDataElectronicChart> selectSysDataElectronicChartList(SysDataElectronicChart sysDataElectronicChart)
    {
        return sysDataElectronicChartMapper.selectSysDataElectronicChartList(sysDataElectronicChart);
    }

    /**
     * 新增electronicChart
     * 
     * @param sysDataElectronicChart electronicChart
     * @return 结果
     */
    @Override
    public int insertSysDataElectronicChart(SysDataElectronicChart sysDataElectronicChart)
    {
        return sysDataElectronicChartMapper.insertSysDataElectronicChart(sysDataElectronicChart);
    }

    /**
     * 修改electronicChart
     * 
     * @param sysDataElectronicChart electronicChart
     * @return 结果
     */
    @Override
    public int updateSysDataElectronicChart(SysDataElectronicChart sysDataElectronicChart)
    {
        return sysDataElectronicChartMapper.updateSysDataElectronicChart(sysDataElectronicChart);
    }

    /**
     * 批量删除electronicChart
     * 
     * @param dataIds 需要删除的electronicChart主键
     * @return 结果
     */
    @Override
    public int deleteSysDataElectronicChartByDataIds(Integer[] dataIds)
    {
        return sysDataElectronicChartMapper.deleteSysDataElectronicChartByDataIds(dataIds);
    }

    /**
     * 删除electronicChart信息
     * 
     * @param dataId electronicChart主键
     * @return 结果
     */
    @Override
    public int deleteSysDataElectronicChartByDataId(Integer dataId)
    {
        return sysDataElectronicChartMapper.deleteSysDataElectronicChartByDataId(dataId);
    }
}
